package com.exampleyyy.demoyyy.SHITIYYY;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单明细
 */
@Data
public class OrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    //名称
    private String name;

    //订单id
    private Long orderId;

    //水果id
    private Long dishId;

    //套餐id
    private Long setmealId;

    //口味
    private String dishFlavor;

    //数量
    private Integer number;

    //金额
    private BigDecimal amount;

    //图片
    private String image;
    @TableField(fill= FieldFill.INSERT) // 自动填充策略,只有第一次插入的时候,填充
    private LocalDateTime createTime;

    @TableField(fill=FieldFill.INSERT_UPDATE) // 自动填充策略,第一次插入或者有修改的时候就填充
    private LocalDateTime  updateTime;

    @TableField(fill=FieldFill.INSERT)
    private Long createUser;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Long updateUser;
}